<?php

namespace App\Service\Customer;

use App\Models\Customer\CustomerModel;
use App\Models\Customer\CustomerOauthModel;

class CustomerOauthService
{
    public static function findUser(array $data)
    {
        return CustomerOauthModel::where($data)->first();
    }

    public static function updOauth($uid, array $data)
    {
        return CustomerOauthModel::where('uid',$uid)->update($data);
    }
}